<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="CorrelativosCreateDlg" widgetVar="CorrelativosCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.CreateCorrelativosTitle}">

            <h:form id="CorrelativosCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{correlativosController.selected != null}">

                        <p:outputLabel value="#{bundle.CreateCorrelativosLabel_genName}" for="genName" />
                        <p:inputText id="genName" value="#{correlativosController.selected.genName}" title="#{bundle.CreateCorrelativosTitle_genName}" required="true" requiredMessage="#{bundle.CreateCorrelativosRequiredMessage_genName}"/>

                        <p:outputLabel value="#{bundle.CreateCorrelativosLabel_genVal}" for="genVal" />
                        <p:inputText id="genVal" value="#{correlativosController.selected.genVal}" title="#{bundle.CreateCorrelativosTitle_genVal}" />
                    </p:panelGrid>
                    <p:commandButton actionListener="#{correlativosController.saveNew}" value="#{bundle.Save}" update="display,:CorrelativosListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,CorrelativosCreateDialog);"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="CorrelativosCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
